<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<div class="wrapper-xs">
	<div class="panel panel-default">
		<div class="panel-body">
            <%@ include file="/page/common/timeselect.jsp"%>
			<div id="toolbar" class="btn-group">
				<div class="navbar-form " style="margin-top: 0; padding: 0;"
					role="search">
                    <div class="input-group">
                        <input id="ip_keyWord" type="text" class="form-control" placeholder="search. e.g. *q* or q*.." name="q">
                    </div>
                    <button id="btn-time" type="submit" class="btn btn-default">今天</button>
                    <div class="form-group">
                        <select id="s_report_type" class="selectpicker w-smxl">
                            <option value="all" selected>--报告单类型--</option>
                            <option value="template" >模板</option>
                            <option value="report" >报告单</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <select id="s_count_type" class="selectpicker w-smxl">
                            <option value="100" selected>最近100条</option>
                            <option value="500" >最近500条</option>
                            <option value="1000" >最近1000条</option>
                            <option value="10000" >最近10000条</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <select id="s_sort_type" class="selectpicker w-smxl">
                            <option value="desc" selected>desc by time</option>
                            <option value="asc" >asc by time</option>
                        </select>
                    </div>
					<button id="btn-query" type="submit" class="btn btn-default">搜索</button>
                    <button id="btn-addTemplate" type="submit" class="btn btn-default">上传模板</button>
                    <div class="form-group">
                        <h5 id="id-record">共0条记录</h5>
                    </div>
				</div>
			</div>
            <div id="div-tree" style="float: left;width: 18%;height: 100%">
                <div class="panel panel-default" style="margin-top: 10px">
                    <div class="panel-heading">报告单数据</div>
                    <div class="panel-body" style="overflow-x: auto">
                        <div id="sys_tree">
                        </div>
                    </div>
                </div>
            </div>
            <div style="float: right;width: 80%">
                <table id="id_report" class="table table-condensed" style="font-size: 6px">
                </table>
            </div>
		</div>
	</div>
</div>
<!-- 预览 Modal -->
<div class="modal fade fade-in-down" id="report-modal" tabindex="-1"
     role="dialog" aria-labelledby="modalLabel" style="margin-top: 150px;">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="modalLabel">预览</h4>
            </div>
            <div class="modal-body" id="pdf-content" style="height: 520px;width: 100%">
            </div>
        </div>
    </div>
</div>

<!-- 上传模板 Modal -->
<div class="modal fade fade-in-down" id="upload-template-modal"
     tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     style="margin-top: 150px;">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" >上传模板</h4>
            </div>
            <div class="modal-body">
                <form class=" form-horizontal">
                    <div class="form-group">
                        <label class="col-lg-3 control-label">模板文件文件：</label>
                        <div class="col-lg-9">
                            <input type="file" accept=".doc,.docx" name="templateFile" id="templateFile" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">系统：</label>
                        <div class="col-lg-9">
                            <select id="m_s_s" class="selectpicker" class="form-control">
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">模板名称：</label>
                        <div class="col-lg-9">
                            <input id="ipt-templateName" type="text" class="form-control" placeholder="请填写名称！！">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-3 control-label">模板备注：</label>
                        <div class="col-lg-9">
                            <textarea id="m_tt_b" class="form-control" name="templateComment" rows=""
                                      cols="" placeholder="请填写备注！！"></textarea>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="btn-updateTemplate-submit" type="button" class="btn btn-default">提交</button>
                <button type="button" class="btn btn-primary">重置</button>
            </div>
        </div>
    </div>
</div>


<script src="${ctx}/js/${code}/${code}_${sheet}.js" type="text/javascript" charset="utf-8"></script>